<?php $adminHelper = $this->getHelper('Admin'); ?>
<div id="view-content">
<?php $sellers = $adminHelper->getSellers(); ?>

    <table id="sellers-grid" class="table">
        <tr>
            <th>Emso prodajalca</th><th>Ime prodajalca</th><th>Priimek prodajalca</th><th>Akcije</th>
        </tr>
        <?php foreach ($sellers as $seller): ?>
            <tr>
                <td><?php echo $seller->getEmso() ?></td>
                <td><?php echo $seller->getIme() ?></td>
                <td><?php echo $seller->getPriimek() ?></td>
                <td>
                    <a href="<?php echo $seller->getEditUrl($this->baseUrl()) ?>">Uredi</a> |
                    <a href="<?php echo $seller->getDeleteUrl($this->baseUrl()) ?>">Izbriši</a> |
                    <?php if ($seller->getAktiviran()): ?>
                        <a href="<?php echo $seller->getDeactivateUrl($this->baseUrl()) ?>">Deaktiviraj</a>
                    <?php else: ?>
                        <a href="<?php echo $seller->getActivateUrl($this->baseUrl()) ?>">Aktiviraj</a>
                    <?php endif; ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </table>

    <div class="button-set">
        <a class="button" href="<?php echo $this->baseUrl()."/admin/ustvari-prodajalca" ?>">Ustvari novega prodajalca</a>
    </div>

</div>